﻿using Microsoft.Extensions.DependencyInjection;

namespace Fast
{
    [SkipScan]
    public static class NormalizeActionResultFastApplicationExtensions
    {
        /// <summary>
        /// 添加规范化返回结果
        /// </summary>
        /// <param name="services"></param>
        /// <returns></returns>
        public static IFastApplication AddNormalizeActionResult(this IFastApplication application)
        {
            application.Services.AddNormalizeActionResult();

            return application;
        }
    }
}
